from django.http import HttpResponse, HttpResponseRedirect
from django.template import Context, loader, RequestContext
from django.contrib.auth.models import User
from django.contrib.auth import authenticate, logout as auth_logout
from lib.models import *
from django.conf import settings
    
def logout(request):
  auth_logout(request)
  return HttpResponseRedirect('/login')